﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZLCMS.Business.Util;

namespace ZLCMS.Web.Wap.Member
{
    public partial class LoginToken : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            var redisdb = RedisUtil.Conn.GetDatabase(2);
            string acc = redisdb.StringGet(Request["token"]);

            if (string.IsNullOrEmpty(acc))
            {
                Response.Write("参数错误");
            }
            else
            {
                Server.Transfer(string.Format("LoginSuccess.aspx?token={0}&goto={1}", acc, Server.UrlEncode(Request["goto"])));
            }

        }
    }
}